package io.renren.modules.service.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author chenzh
 * @email ${email}
 * @date 2019-05-08 20:38:56
 */
@TableName("tb_product_code")
@Data
public class ProductCodeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;
    /**
     * 产品名称id
     */
    @NotNull(message = "请选择产品名称", groups = {AddGroup.class})
    private Integer productNameId;
    /**
     * 产品编号
     */
    @NotBlank(message = "请输入产品编号", groups = AddGroup.class)
    private String number;
    /**
     * 创建时间
     */
    private Date createTime;

}
